﻿using EmbeddedResources_Test.Localizations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;

namespace EmbeddedResources_Test
{
    public class EmbeddedResourcesMoudule :AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.AddEmbedded<EmbeddedResourcesResource>();
            });

            //Console.WriteLine("222222222代码测试，代码测试，代码测试，代码测试，");

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<EmbeddedResourcesResource>("en")
                    .AddVirtualJson("/EmbeddedResources_Test/EmbeddedResources");
            });
        }
    }
}
